package com.cy.pj.sys.dao;

import com.cy.pj.common.vo.Node;
import com.cy.pj.sys.pojo.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author YuBaoFu
 * @create 2025/05/28
 * @description
 */
@Mapper
public interface SysMenuDao {

    List<Map<String,Object>> findObjects();

    int getChildCount(Integer id);

    int deleteObject(Integer id);

    List<Node> findZTreeMenuNodes();

    int saveObject(SysMenu sysMenu);

    int updateObject(SysMenu sysMenu);

    List<String> findPermissions(@Param("menuIds") Integer[] menuIds);
}
